/*
 * test.c
 *
 *  Created on: Jul 4, 2008
 *      Author: Carlos Oliveira
 */

#include "testShapes.h"
#include "list.h"

#include <stdio.h>
#include <stdlib.h>

static void test_lists()
{
	List *l = list_new();
	int i;
	for (i=0; i<10; ++i)
	{
		int *p = (int*)malloc(sizeof(int));
		*p = i+1;
		list_add(l, p);
	}
	ListNode *ln;
	for (ln = list_firstNode(l); ln; ln = ln->next)
	{
		printf("value is %d\n", *(int*)ln->content);
	}
	list_delete(l);
}

int main()
{
	test_shapes();
	test_lists();
	return 0;
}
